package com.zhanghe.study.springcloudalibaba.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zh
 * @date 2021/9/15 15:20
 */
@FeignClient(value = "springcloudalibaba-seata-account")
public interface AccountClient {

    @PostMapping("/account/decrease")
    void decrease(@RequestParam("userId") int userId,@RequestParam("money") double money);
}
